/*
 * 出库记录明细查询
 * 参数   交易码：trancode=51213
 */

package org.ccams.tran;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.sf.json.JSONObject;

import org.ccams.domain.TpOutDetail;
import org.ccams.util.ConvertUtil;

public class Tran51213 extends AbstractJsonTran{

	@SuppressWarnings("unchecked")
	@Override
	protected void buildJSONObject(Map model, JSONObject json,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		
		Long num = Long.parseLong(request.getParameter("num"));
		List<TpOutDetail> list = getCcamsService().getTpoutdetailDao().getTpoutdetailById(num);
		
		json.putAll(ConvertUtil.generate(list));
	}
}
